package com.example.demo.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name="t_student")
public class User implements Serializable {
    @Id
    @Column(name = "StuId")
    private Long stuId;
    @Column(name = "StuName")
    private String stuName;
    @Column(name = "StuClass")
    private String stuClass;

    public User() {
    }

    public Long getStuId() {
        return stuId;
    }

    public void setStuId(Long stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuClass() {
        return stuClass;
    }

    public void setStuClass(String stuClass) {
        this.stuClass = stuClass;
    }

    public User(Long stuId, String stuName, String stuClass) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuClass = stuClass;
    }
}